package com.qf.advice;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

/**
 * @version 1.0
 * @auther Administrator
 * @date 2023/2/7 16:16
 * 我的自定义后置通知
 */
public class MyAfterAdvice implements AfterReturningAdvice {
    /**
     * 我的后置通知方法
     * @param o
     * @param method
     * @param objects
     * @param o1
     * @throws Throwable
     */
    @Override
    public void afterReturning(Object o, Method method, Object[] objects, Object o1) throws Throwable {
        System.out.println("5、维修");
        System.out.println("6、转租");
    }
}
